package com.itmayiedu.mapper;

import com.itmayiedu.annotation.ExtInsert;
import com.itmayiedu.annotation.ExtMapper;
import com.itmayiedu.annotation.ExtParam;
import com.itmayiedu.annotation.ExtSelect;
import com.itmayiedu.impl.User;

@ExtMapper
public interface UserMapper {
    @ExtInsert(value = "insert into user(userName,userAge) values(#{userName},#{userAge})")
     int insertUser(@ExtParam("Username") String s,@ExtParam("userAge") int i);


    @ExtSelect(value = "Select * from myUser where userName=#{userName} and userAge=#{userAge}")
     User SelectUser(@ExtParam("Username") String s, @ExtParam("userAge") int i);

}
